package com.lyz.dataStructure.JianZhiOffer;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 21:37
 * @Description:
 **/

import java.util.LinkedList;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/6/16 21:37
 *@Description:
 **/
public class Test7 {

    public static void main(String[] args) {

        LinkedList<Integer> queue = new LinkedList<Integer>();

        queue.add(4);
        queue.add(5);
        queue.add(8);
        queue.add(9);
        queue.add(7);
       System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.pop());

    }
}
